package org.example.exp2.exam5;

import org.example.exp2.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        SceneFactory sceneFactory = (SceneFactory) XMLUtil.getBean(
                "src/test/java/org/example/exp2/exam5/config.xml",
                "SceneType");
        Map map = sceneFactory.createMap();
        Music music = sceneFactory.createMusic();
        Weather weather = sceneFactory.createWeather();
        map.load();
        music.load();
        weather.load();
    }
}